            {% for field in form %}
                <tr>
                    <th>{{ field.label }}</th>
                    <td>
                    {% if field.type in ['TextField','PasswordField','TagListField'] %}
                        {{ field(style="width:50%",class_="text")|safe }}
                    {% elif field.type in ['TextAreaField'] %}
                        {{ field(style="width:68%",class_="text")|safe }}
                    {% else %}
                        {{ field|safe }}
                    {% endif %}
                    {% if field.flags.required %}<strong class="required">*</strong>{% endif %}
                    {% if field.id=='slug' %}使用 <a href="javascript:;" title="中文转拼音" class="pinyin">拼音</a> 或 <a href="javascript:;" title="中文翻译成英文" class="translate">翻译</a>{% endif %}
                    {% if field.errors %}
                    <div class="errors">
                        <ul>
                        {% for error in field.errors %}<li>{{ error }}{% endfor %}
                        </ul>
                    </div>
                    {% endif %}
                    </td>
                </tr>
            {% endfor %}